﻿namespace PillBox.Client.ViewModels
{
    using System.ComponentModel.Composition;
    using PillBox.Client.Framework;
    using PillBox.Client.Model;

    [Export]
    public class MedicationDetailsViewModel : ViewModelBase
    {
        public Medication Medication
        {
            get;
            set;
        }

        public void With(Medication medication)
        {
            this.Medication = medication;

            RaisePropertyChanged(() => Medication);
        }
    }
}